const packageName = require('./package.json').name;

module.exports = {
    devServer: {
        //代理axios
        // proxy: 'http://localhost:9000',
        //vue自己启动的端口
        port: 7002,

        headers: {
            'Access-Control-Allow-Origin': '*',
        },
    },

    configureWebpack: {
        output: {
          // 把子应用打包成 umd 库格式
          library: `${packageName}-[name]`,
          libraryTarget: 'umd',
          jsonpFunction: `webpackJsonp_${packageName}`
        }
      },
      
    lintOnSave: false,
}